var mysql = require('mysql');
var util = require('util');

function querystatement(client,tablename){
	var selectstatement = 'select * from ' + tablename;
	client.query(selectstatement, function(err,rows,fields){
		if (err) throws err;
		if (rows){
			return rows;
		}
	});
}

exports.querystatement = querystatement;